package field_method06;

public class SumTest {
    public static void main(String[] args){
        int JiSum=0;
        int OuSum=0;
        for (int i=0;i<100;i++){
            if(i%2==0){
                OuSum=OuSum+i;
            }else{
                JiSum=JiSum+i;
            }
        }
        System.out.println("奇数和="+JiSum);
    }
}
